<?php
session_start();
$order_user = $_SESSION['userid'];
date_default_timezone_set('prc');

$tableAddMoney = "addmoney";

$query = mysql_query("select count(nid) from $tableAddMoney where add_money_user = '$order_user'");
$sum = mysql_result($query, 0);
$result = mysql_query("select * from $tableAddMoney where add_money_user = '$order_user' order by add_money_date desc");
while ($row = mysql_fetch_array($result)) {
    $add_money_date[] = $row['add_money_date'];
    $add_money[] = $row['add_money'];
    $add_money_admin[] = $row['add_money_admin'];
}


?>